<?php

class UserPermissionAssignmentListener {
  
  /**
   * If an organizational unit property of type elective office is being changed, this method is called for adjusting the permission settings for the user
   * @param sfEvent $event
   */
  public function listenToOrganizationalUnitElectiveOfficeAssignmentChangedEvent(sfEvent $event) {
    // Get subject (
    $organizational_unit_property_assignment = $event->getSubject ();
    $organizational_unit_property_assignment->setValue ( '34567' );
  }
}